package com.xkstream.client.presenter;

import com.xkstream.client.base.BasePresenter;
import com.xkstream.client.base.BaseView;
import com.xkstream.client.entity.User;

import java.util.Map;

/**
 * Created by xiaoyi on 2017/8/24.
 */

public interface UserContract {
    interface Presenter extends BasePresenter {
        void userLogin(Map<String, Object> params);
    }

    interface View extends BaseView<Presenter> {

        void loginSuccess(User user);

        void loginFailed(int code, String msg);

        void showError(String message);
    }

}
